
#ifndef __TestAdi2_H__
#define __TestAdi2_H__

#include "mixr/graphics/Page.hpp"

//------------------------------------------------------------------------------
// Class: TestAdi2
//
// Description: Tests an MFD version of the ADI
//------------------------------------------------------------------------------
class TestAdi2 final: public mixr::graphics::Page
{
   DECLARE_SUBCLASS(TestAdi2, mixr::graphics::Page)

public:
    TestAdi2();

    void updateData(const double dt = 0) final;

private:
    double pitch{};           // our pitch (90 to -90)
    SendData pitchSD;
    double  pitchRate{15.0};

    double roll{};            // our roll (180 to -180)
    SendData rollSD;
    SendData rollBASD;        // bank angle roll value
    double rollRate{10.0};

    double slip{};            // our side slip (20 to -20)
    SendData slipSD;
    double slipRate{5.0};

    double calAS{};           // calibrated airspeed
    double calASRate{20.0};
    SendData calASSD;

    double alt{};             // altitude
    SendData altSD;
    double altRate{100.0};

    double mag{};             // magnetic heading
    SendData magSD;
    double magRate{15.0};
    double cdmX{};            // x (pitch) value of our climb dive marker (inches)
    double cdmY{};            // y (slip) value of our climb dive marker (inches)
    SendData cdmXSD;
    SendData cdmYSD;
    SendData cdmRollSD;
    SendData ghostPitchSD;    // ghost horizon pitch
    SendData ghostRollSD;     // ghost horizon roll
};

#endif
